package com.lo.service.impl;

import com.lo.entity.Message;
import com.lo.entity.ViewQueryInfoDTO;
import com.lo.service.MessageService;
import org.springframework.stereotype.Service;

@Service
public class MessageServiceImpl implements MessageService {
    @Override
    public Message list(ViewQueryInfoDTO viewQueryInfoDTO) {
        Message message = new Message(viewQueryInfoDTO.getState(),viewQueryInfoDTO.getType(),viewQueryInfoDTO.getContent());
        return message;
    }
}
